package com.manong.service;


import com.github.pagehelper.PageInfo;
import com.manong.domain.Goods;
import com.manong.query.GoodsQueryObject;
import com.manong.vo.RolePermissionVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface GoodsService {
    List<Goods> getGoods();

    PageInfo query(GoodsQueryObject queryObject);

    void delete(Long id);

    void saveOrUpdate(Goods goods);

    @Transactional
    void save(Goods goods);

    void update(Goods goods);

    Goods get(Long id);

    int getTotalGoodsCount();
}
